package com.ocean.inxex.service.impl;

import com.ocean.inxex.mapper.IndexMapper;
import com.ocean.inxex.service.IndexService;
import com.ocean.inxex.vo.oNotice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexServiceImpl implements IndexService {
    @Autowired
    private IndexMapper indexMapper;
    /**
     * 获取首页通知数据
     * @param page
     * @return
     */
    @Override
    public List<oNotice> getNoticelist(int page) {
        return indexMapper.getNoticelist(page);
    }
}
